package com.ruoyi.system.service;

import com.ruoyi.common.core.cache.Meta;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.Team;
import com.ruoyi.common.core.domain.entity.TeamMeta;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ISysTeamService {
    void createTeam(Team team, Long creator);

    void joinTeam(Long teamId, Long adminId);

    List<Team> selectTeamByUserId(Long userId);

    Team selectTeamById(Long teamId,Long userId);

    void updateTeamMeta(TeamMeta meta);

    AjaxResult meta(HttpServletRequest request, Team team);

    Meta selectTeamMeta(Long teamId);
}
